package ch03.demo;

import ch03.demo.dao.AbstractFactory;
import ch03.demo.dao.MySqlDaoFactory;
import ch03.demo.dao.NewsDao;
import ch03.demo.dao.SimpleDaoFactory;
import ch03.demo.service.impl.NewsServiceImpl;

public class Test {
    public static void main(String[] args) {
        NewsDao dao= SimpleDaoFactory.getInstance("mysql");
        NewsServiceImpl service=new NewsServiceImpl();
        service.setDao(dao);



    }
}
